﻿// JScript File
 function checkAllBody(frm,chk)
{
    for(i=0;i<frm.elements.length;i++)
	    frm.elements[i].checked=chk;
}
function checkAllBodyMember(frm, chk, parentID) {
    ChkCate = frm.elements["ChkCate" + parentID];
    for (i = 0; i < ChkCate.length; i++)
        ChkCate[i].checked = chk;
}
function submitFormBody(frm, act, error)
{
    b=false;;
    for(i=0;i<frm.elements.length;i++)
	    if(frm.elements[i].checked) 
	    {
		    b=true;
		    break;
	    }
    if(b)
    {
	    frm.action='?'+act;
	    frm.submit();
    }else alert(error);
}
